export default function OutputConfig(domContainer: any) {
    const width = domContainer.clientWidth;
    const height = domContainer.clientHeight;

    const ModelConfig = {
        container: domContainer, // String | HTMLElement，必须，在 Step 1 中创建的容器 id 或容器本身
        width: width, // Number，必须，图的宽度
        height: height, // Number，必须，图的高度
        animate: true,
        defaultNode: {
            type: 'model',
        },
        layout: {
            type: 'dagre',
            sortByCombo: false,
            ranksep: 40,
            nodesep: 50,
            linkDistance: 250,
            clustering: true,
            preventOverlap: true,
            nodeStrength: 100,
        },
        plugins: [],
        fitView: false,
        fitCenter: true
    };

    return ModelConfig;
}
